<?php

	/**
	 * @pake smarty 语言包插件
	 * @Author 慕枫
	 * @Link phpythoner@gmail.com 
	 */
	function smarty_function_lang($params, $smarty){

	 	$key = isset($params['key']) ? $params['key'] : null;	 	
	  	$translate = Zend_Registry::get('Zend_translate');
	  	return $translate->translate($key);
	}
?>